package video.web;

import util.GetHtml;
/**
 * 
 * @author ladjzero
 *
 */
public abstract class SuperParser implements ParserInterface{
	protected String videoUrl;
	protected String content;
	protected String vid;
	protected String domain;
	
	
	public SuperParser(String videoUrl, String charSet){
		this.videoUrl = videoUrl;
		content = new GetHtml().get(videoUrl, charSet);
		vid = UrlParser.getVid(videoUrl);
		domain = UrlParser.getSiteDomain(videoUrl);
	}
	
	public SuperParser(String videoUrl){
		this.videoUrl = videoUrl;
		content = new GetHtml().get(videoUrl);
		vid = UrlParser.getVid(videoUrl);
		domain = UrlParser.getSiteDomain(videoUrl);
	}
	
	public abstract String getImage();

	public abstract String getSwf();
}
